package com.zhaozhaonews.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhaozhaonews.model.common.dto.PageResponseResult;
import com.zhaozhaonews.model.common.dto.ResponseResult;
import com.zhaozhaonews.model.wemedia.dto.WmMaterialDto;
import com.zhaozhaonews.model.wemedia.entity.WmMaterial;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 自媒体图文素材信息表 服务类
 * </p>
 *
 * @author WanJL
 * @since 2025-02-17
 */
public interface WmMaterialService extends IService<WmMaterial> {
    /**
     * 自媒体上传图片素材
     * @param file
     * @return
     */
    ResponseResult uploadPicture(MultipartFile file);

    /**
     * 素材分页列表
     * @param wmMaterialDto
     * @return
     */
    PageResponseResult list(WmMaterialDto wmMaterialDto);
}
